From 7ebbf4bc28a64255248f686a9c7b8a831dab16a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Bonzon?= <1116761+fbonzon@users.noreply.github.com> Date: Thu, 26 Oct 2017 03:44:27 +0200 Subject: [PATCH] Fix a compiler warning warning: equality comparison with extraneous parentheses [-Wparentheses-equality] --- grtcirc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grtcirc.cc b/grtcirc.cc index a29d69b3c..1ccfdf99f 100644 --- a/grtcirc.cc +++ b/grtcirc.cc @@ -88,9 +88,9 @@ double gcdist(double lat1, double lon1, double lat2, double lon2) if ( #if defined isnan /* This is a C99-ism. */ - (isnan(res)) || + isnan(res) || #endif - (errno == EDOM)) { /* this should never happen: */ + errno == EDOM) { /* this should never happen: */ errno = 0; /* Math argument out of domain of function, */ return 0; /* or value returned is not a number */ -- 2.30.2